using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration; using Sispe.Entities;

namespace Sispe.Repository.Mapping
{
    public class TIPO_GESTIONMap : EntityTypeConfiguration<TIPO_GESTION>
    {
        public TIPO_GESTIONMap()
        {
            // Primary Key
            this.HasKey(t => t.IdTipoGestion);

            // Properties
            this.Property(t => t.Descripcion)
                .IsRequired()
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("TIPO_GESTION");
            this.Property(t => t.IdTipoGestion).HasColumnName("IdTipoGestion");
            this.Property(t => t.Descripcion).HasColumnName("Descripcion");
        }
    }
}
